<template>
  <div>
    御剑乘风来,除魔天地间!===Hello <br />
    <router-link to="/hie?name=小明">嘿嘿嘿</router-link> <br />
    <router-link to="/nihao/18">你好</router-link>

    <button @click="goNihao">去nihao</button>
    <button @click="goHie">去hie</button>
  </div>
</template>
<script>
export default {
  name: 'HeLo',
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    goNihao () {
      this.$router.push({
        name: 'Ennihao',
        query: { name: 'jack', age: 18 },
        params: { age: 22 }
      })
    },
    goHie () {
      this.$router.push('/hie')
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
